/*
 * @(#)ServiceDAO.java $version 2013-3-1
 * 
 * Copyright 2013 NADO Group. All rights Reserved.
 * NADO PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nado.iims2.community.dao;

import java.sql.SQLException;
import java.util.List;

import com.nado.extensions.util.DataMap;
import com.nado.iims2.community.model.ServiceModel;
import com.nado.iims2.community.model.SubServiceModel;

/**
 * The Class ServiceDAO.
 * 
 * @author nado
 */
public interface ServiceDAO {
	List<DataMap> selectServiceList() throws SQLException;
	int selectServiceListCount() throws SQLException;
	int insertService(ServiceModel model) throws SQLException;
	int updateService(ServiceModel model) throws SQLException;
	int deleteService(ServiceModel model) throws SQLException;
	
	List<DataMap> selectSubServiceList(int serviceNo) throws SQLException;
	int selectSubServiceListCount(int serviceNo) throws SQLException;
	int insertSubService(SubServiceModel model) throws SQLException;
	int updateSubService(SubServiceModel model) throws SQLException;
	int deleteSubService(SubServiceModel model) throws SQLException;
}
